package org.example.tools;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Log4jTest {
    private static final Logger logger = LogManager.getLogger(Log4jTest.class);

    public static void main(String[] args) {
        System.out.println("Logger name: " + logger.getName());
        System.out.println("Logger level: " + logger.getLevel());

        logger.info("Flink job started.");
        // 其他Flink作业代码
        logger.info("Flink job finished.");
    }
}
